#include "textflag.h"

// func SyscallWrite_Darwin(fd int, msg string) int
TEXT ·SyscallWrite_Darwin(SB), NOSPLIT, $0
    MOVD $(0x2000000+4), R16 // #define SYS_write 4
    MOVD fd+0(FP),       R0
    MOVD msg_data+8(FP), R1
    MOVD msg_len+16(FP), R2
    SVC	$0x80
    MOVD R16, ret+0(FP)
    RET
